package com.whfc.fse.dao;

import com.whfc.fse.entity.FseCrawlerData;
import org.apache.ibatis.annotations.Param;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021/11/2 17:20
 */

public interface FseCrawlerDataMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FseCrawlerData record);

    int insertSelective(FseCrawlerData record);

    FseCrawlerData selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FseCrawlerData record);

    int updateByPrimaryKey(FseCrawlerData record);

    /**
     * 获取最新履带吊数据
     *
     * @param crawlerId 履带吊ID
     * @return 履带吊最新数据
     */
    FseCrawlerData selectByCrawlerId(@Param("crawlerId") Integer crawlerId);

    /**
     * 删除履带吊数据
     *
     * @param crawlerId 履带吊ID
     */
    void delByCrawlerId(Integer crawlerId);
}